package com.ys.sboot.logback.controller;


import com.alibaba.druid.support.json.JSONUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "logBack")
public class LogBackController {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @GetMapping(value = "reqLogBack")
    public String reqLogBack(String name) {
        return JSONUtils.toJSONString("you win the game>>" + name);


    }
}
